package com.mingqijia.gassafety.db.entity.auth;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 权限系统中的操作日志数据项
 * @author Damon S.
 * @version v1.0.1
 * @date 2019年11月01日 10:57
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(value = "t_gss_operatelog", schema = "mingqijia_gas_common_db")
public final class OperateLogEntry extends BaseEntry {

    @TableField("user_id")
    private String userId;

    @TableField private String username;

    @TableField private String operation;

    @TableField("ip")
    private String sourceIp;

    @TableField private String uri;

    @TableField private Long duration;

    @TableField private String params;
}
